using UniversalAdminSystem.Domian.Core.Interfaces;
using UniversalAdminSystem.Domian.UserConversations.Aggregates;

namespace UniversalAdminSystem.Domian.UserConversations.IRepository;

public interface IMessageRepository : IRepository<Message>
{
    /// <summary>
    /// 获取某个会话的所有消息
    /// </summary>
    /// <param name="conversationId"></param>
    /// <returns></returns>
    Task<IEnumerable<Message>> GetByConversationIdAsync(Guid conversationId);

    /// <summary>
    /// 删除某个会话的所有消息
    /// </summary>
    /// <param name="conversationId"></param>
    /// <returns></returns>
    Task RemoveByConversationIdAsync(Guid conversationId);
}